package com.jinzhi.eventresource.dao;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 资源库前台权限表
 * </p>
 *
 * @author author
 * @since 2024-09-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("jz_permission")
@ApiModel(value="JzPermission对象", description="资源库前台权限表")
public class JzPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(exist = false)
    private String eveMoName;

    @ApiModelProperty(value = "使用人id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人")
    @TableField("create_id")
    private Long createId;

    @ApiModelProperty(value = "更新人")
    @TableField("update_id")
    private Long updateId;

    @ApiModelProperty(value = "资源id")
    @TableField("allocation_id")
    private Long allocationId;

    @ApiModelProperty(value = "1赛项规程 2在线练习 ...")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "1中职组 2高校组 3教师组 4国际组 5通用 (逗号分割)")
    @TableField("group_type")
    private String groupType;


}
